package com.edu.service.impl;

import com.edu.dao.BusinessDao;
import com.edu.dao.impl.BusinessDaoImpl;
import com.edu.domain.Business;
import com.edu.service.BusinessService;

import java.util.List;

public class BusinessServiceImpl implements BusinessService {
    private BusinessDao businessDao=new BusinessDaoImpl();
    @Override
    public List<Business> listBusinessByOrderTypeId(int orderTypeId) {
        return this.businessDao.listBusinessByOrderTypeId(orderTypeId);
    }

    @Override
    public Business getBusinessById(int businessId) {
        return this.businessDao.getBusinessById(businessId);
    }
}
